﻿function fnSearchCusInfo() {
    //alert("Searching..");
    var cusid = $('#txtSearchCusID').val();
    var cusname = $('#txtSearchCusNme').val();
    var cusmob = $('#txtSearchCusMobile').val();
    var amcid = '';
    var cusmail = '';
    window.location.href = "../pages/search.aspx?cid=" + cusid + "&cnme=" + cusname + "&cmob=" + cusmob + "&amcid=" + amcid + "&cmail=" + cusmail;
}
function fnSearchAMCDetails() {
    var amcid = $('#txtSearchInvoiceID').val();
    var cusmail = $('#txtSearchCusMail').val();
    var cusid = '';
    var cusname = '';
    var cusmob = '';
    window.location.href = "../pages/search.aspx?cid=" + cusid + "&cnme=" + cusname + "&cmob=" + cusmob + "&amcid=" + amcid + "&cmail=" + cusmail;
}
function loadCusDetailsSearch(obj) {
    //alert($(obj).attr('cusid'));
    cusid = $(obj).attr('cusid');
    window.location.href = "../pages/customerdetails.aspx?cid=" + cusid;
}